20230322
[shlib.git] / testing / 6.shlib_v0_4_testing.Testing for shlib v0_4.unit / 2.tmpl_testing.tmpl Testing.unit / scripts / example.shlib
bloba7f5af2022c6533b767604354a564157e437c4e6
1 #!/bin/bash
2 ############################################################
3 # source: example.shlib
4 # author: devenkong(18151155@qq.com)
5 # date: 2021-10-15
6 ############################################################
7 # Copyright (C) 2022- Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software
9 # Foundation gives unlimited permission to copy, distribute
10 # and modify it.
11 ############################################################
12 # note:
13 # this is a test shlib file for shlib include path testing.
14 # the function is invoked, that means this shlib is include
15 # in the program.
16 ############################################################
18 #echo -ne "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n" >&2
20 #echo -ne "nest_level=$nest_level\n" >&2
21 dbgout "load example.shlib at the beginning ...\n"
23 . shlibinc
25 include uniq.shlib
27 #load stdio.shlib
28 #include stdio.shlib
29 #echo xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
30 #load dbgout.shlib
32 #echo -ne "SHLIB_LIST=$SHLIB_LIST\n"
33 #echo -ne "SHLIB_INC_LIST=$SHLIB_INC_LIST\n"
35 example_func ()
37 echo -ne "example_func() is invoked in example.shlib.\n"
40 alias example_test_alias="dbgout \"example_test_alias() is an example in example.shlib.\n\""
42 #declare -x -g -F example_func
44 dbgout "load example.shlib at the tail ...\n"